package com.kanche.bigbaby.support.base;

import android.app.Activity;
import android.content.Context;
import android.view.View;

import com.kanche.bigbaby.BBService;

/**
 * Created by Chenshao_Young on 15/5/15.
 */
public class BaseFragment extends BaseStateFragment {
    public Context context;

    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        context = activity;
    }

    public static final String FRAGMENT_NAME = "FRAGMENT_NAME";


    public <T extends View> T justFindIt(View v, int id) {
        return (T)(v.findViewById(id));
    }

    public BBService getBBService(){

        return BBService.Creator.create(getActivity());
    }
}
